package com.kook.ball.configure;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

public class Config {
	private static Properties props = new Properties();
	public static String getUsername() {
		return props.getProperty("usersmtp");
	}
	
	public static void setUsername(String username) throws FileNotFoundException, IOException {
		props.setProperty("usersmtp", username);
	}
	
	public static String getURL() {
		return props.getProperty("urldefaultgateway");
	}
	
	public static void setURL(String url) throws FileNotFoundException, IOException {
		props.setProperty("urldefaultgateway", url);
	}
	
	public static void commit() throws FileNotFoundException, IOException{
		props.store(new FileOutputStream("pros.properties"), null);
	}
}
